//
//  BaseViewController.m
//  PSYWeiBo
//
//  Created by xiaotian on 16/3/12.
//  Copyright © 2016年 郑亚田. All rights reserved.
//

#import "BaseViewController.h"
#import <MBProgressHUD.h>
#import <Masonry/Masonry.h>

@interface BaseViewController ()

//顶部模拟导航条的图片；
@property (nonatomic,strong)UIImageView *headerImgV;

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    [self setMB];
    [self setNavi];
}

- (void)setNavi {
    self.headerImgV = [UIImageView new];
    self.headerImgV.image = [UIImage imageNamed:@"diary-header_m@2x.png"];
    [self.view addSubview:self.headerImgV];
    [self.headerImgV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.equalTo(@0);
        make.top.equalTo(@20);
        make.height.equalTo(@44);
    }];
}

- (void)setMB {
    MBProgressHUD *HUD = [[MBProgressHUD alloc] initWithView:self.view];
    [self.view addSubview:HUD];
    [HUD show:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
